package com.itzyf.pokemondata.bean;

import com.avos.avoscloud.AVObject;

import org.litepal.crud.LitePalSupport;

import java.util.Date;

/**
 * @author 依风听雨
 * @version 创建时间：2019/06/03 08:54
 */
public class DbSuperSkillDo extends LitePalSupport {
    private Date updatedAt;
    private String objectId;
    private Date createdAt;
    private long id;

    private String property;
    private int hitRate;
    private int power;
    private String cname;
    private String ctype;
    private String effect;
    private String detail;

    public DbSuperSkillDo() {

    }

    public DbSuperSkillDo(SuperSkillJsonDo jsonDo) {
        objectId = jsonDo.getObjectId();
        updatedAt = jsonDo.getUpdatedAt();
        createdAt = jsonDo.getCreatedAt();
        property = jsonDo.getProperty();
        hitRate = jsonDo.getHitRate();
        power = jsonDo.getPower();
        cname = jsonDo.getCname();
        ctype = jsonDo.getCtype();
        effect = jsonDo.getEffect();
        detail=jsonDo.getDetail();
    }

    public DbSuperSkillDo(AVObject jsonDo) {
        objectId = jsonDo.getObjectId();
        updatedAt = jsonDo.getUpdatedAt();
        createdAt = jsonDo.getCreatedAt();
        property = jsonDo.getString("property");
        hitRate = jsonDo.getInt("hitRate");
        power = jsonDo.getInt("power");
        cname = jsonDo.getString("cname");
        ctype = jsonDo.getString("ctype");
        effect = jsonDo.getString("effect");
        detail = jsonDo.getString("detail");
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getObjectId() {
        return objectId == null ? "" : objectId;
    }

    public void setObjectId(String objectId) {
        this.objectId = objectId;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getProperty() {
        return property == null ? "" : property;
    }

    public void setProperty(String property) {
        this.property = property;
    }

    public int getHitRate() {
        return hitRate;
    }

    public void setHitRate(int hitRate) {
        this.hitRate = hitRate;
    }

    public int getPower() {
        return power;
    }

    public void setPower(int power) {
        this.power = power;
    }

    public String getCname() {
        return cname == null ? "" : cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getCtype() {
        return ctype == null ? "" : ctype;
    }

    public void setCtype(String ctype) {
        this.ctype = ctype;
    }

    public String getEffect() {
        return effect == null ? "" : effect;
    }

    public void setEffect(String effect) {
        this.effect = effect;
    }

    public String getDetail() {
        return detail == null ? "" : detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }
}
